/**
 * @class AutoTestApp.view.lists.Tree
 * @extends Ext.tree.Panel
 * The task list view.  A tree that displays all of the task lists.
 */
Ext.define('AutoTestApp.view.lists.Tree', {
    extend: 'Ext.tree.Panel',
    xtype: 'lists.ListTree',
    requires: [
    ],
    store: 'lists.Lists',
    hideHeaders: true,
	rootVisible: false,

    viewConfig: {
    },

    initComponent: function() {
        var me = this;

        me.columns = [
            {
                xtype: 'treecolumn',
                dataIndex: 'name',
                flex: 1,
                editor: {
                    xtype: 'textfield',
                    selectOnFocus: true,
                    allowOnlyWhitespace: false
                }
            }
        ];
        
        me.callParent(arguments);

        me.addEvents(
        );
    },

    refreshView: function() {
        // refresh the data in the view.  This will trigger the column renderers to run, making sure the task counts are up to date.
        this.getView().refresh();
    }
});
